package com.ziq.zcamp.bean.post

import com.blankj.utilcode.util.GsonUtils
import com.ziq.zcamp.proguard.ProguardKeep
import java.io.Serializable

class CommentItem : ProguardKeep, Serializable {
    var comment_id : String? = null
    var comment_uid : Int? = null
    var post_id : String? = null
    var post_uid : Int? = null
    var content : String? = null

    var like_num : Int? = null
    var like_status : Int? = null //点赞状态，0：未点赞，1：点赞过
    var create_time : Long? = null
    var user_info : User? = null
    var reply_content :MutableList<ReplyCommentItem>? = null
    var has_more:Boolean? = null//回复是否还有下一页，true是，false否

    var page:Int = 2


    override fun equals(other: Any?): Boolean {
        if(other != null && other is CommentItem){
            if(other.comment_id == comment_id){
                return true
            }
        }
        return super.equals(other)
    }

    override fun hashCode(): Int {
        if(comment_id != null){
            return comment_id.hashCode()
        }
        return super.hashCode()
    }

}